import { BaseController, CoolController } from "@cool-midway/core";
import { OrderInfoEntity } from "../../entity/info";
import { OrderAggregateService } from "../../service/aggregate";

/**
 * 订单主表
 */
@CoolController({
    api: ['add', 'delete', 'update', 'info', 'list', 'page'],
    entity: OrderInfoEntity,
    service: OrderAggregateService,
    serviceApis: [
        'detail'
    ],
    pageQueryOp: {
        fieldEq: ['a.status', 'a.userId'],
        keyWordLikeFields: ['a.orderNo']
    }
})
export class ProviderOrderMainController extends BaseController { }


